﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
using HR.Appointments.Service;

public partial class DisplayOpenHours : EmployeePage
{
    #region Events
    protected void Page_Load(object sender, EventArgs e)
    {
        CheckCredentials();
        _imgConfirm.Visible = IsLoggedIn;
        if (!IsPostBack)
        {
            ListOpenHours();
        }
    }
    #endregion

    #region Private List Methods
    protected void ListOpenHours()
    {
        _dtgDisplayOpenHours.DataSource =
            Facade.Employee().GetOpenHours(GetCompanyIdFromCookie());
        _dtgDisplayOpenHours.DataBind();
    }
    #endregion

    #region Link Transfer
    protected void _ibmHomePage_Click(object sender, ImageClickEventArgs e)
	{
        if (!IsPostBack || (e.X != 0 && e.Y != 0))
        {
            Server.Transfer("~/Company.aspx",true);
        }
	}
	protected void _lbtnCompanyBooking_Click(object sender, EventArgs e)
	{
		Server.Transfer("~/CompanyBooking.aspx",true);
	}
    protected void _lbtnConfig_Click(object sender, EventArgs e)
    {
        
    }
    protected void _btnOpenHours_Click(object sender, EventArgs e)
    {
        Server.Transfer("~/OpenHours.aspx", true);
    }

    protected void _lbtnConfig_Click1(object sender, EventArgs e)
    {
        Server.Transfer("~/Config.aspx", true);
    }
    #endregion
    
}



